<script lang="ts" setup>
import { inject } from 'vue'
import { symbolBlocksMap, TBlocksMap } from './index'
import { BlockItem } from '@/store/module/blocks/helper';

defineProps<{
    block: BlockItem
    index: number
}>()

const blocksMap: TBlocksMap = inject(symbolBlocksMap) as TBlocksMap

</script>

<template>
    <div>
        <component :is="blocksMap[block.type]?.material" />
    </div>
</template>